package com.example.labapp;

import android.app.Dialog;
import android.content.Context;
import android.widget.ProgressBar;
import android.widget.TextView;

import org.w3c.dom.Text;

public class myProgressDlg extends Dialog {
    private ProgressBar progressBar;
    private TextView txtTitle;
    private TextView txtMessage;

    public myProgressDlg(Context context)
    {
        super(context);
        setContentView(R.layout.my_progresss_dialog);
        progressBar=findViewById(R.id.proDlgProgress);
        txtTitle=findViewById(R.id.proDlgTitle);
        txtMessage=findViewById(R.id.proDlgMessage);
    }

    public void setTitle(String title)
    {
        txtTitle.setText(title);
    }

    public void setTxtMessage(String message)
    {
        txtMessage.setText(message);
    }

    public void setProgressBarMaxValue(int value)
    {
        progressBar.setMax(value);
    }

    public void setProgressBarValue(int value)
    {
        progressBar.setProgress(value);
    }
}
